package com.cowcode.dao;

import com.cowcode.entity.Question;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionDao {
    public List<Question> queryAll();
    public List<Question> queryTitle(@Param("uname") String uname,@Param("text") String text,@Param("sid") Integer sid,@Param("page") Integer page);
    public List<Question> queryByPage(@Param("page") int pgae,@Param("pagecount") int pagecount);
    public boolean sendQuestion(Question question);
    public int getCount();
    public boolean deleteByQid(int qid);
    public List<Question> query6();
}
